package com.xpgk.mvc.bsendMessage;

import org.jsoup.Jsoup;
import org.jsoup.safety.Whitelist;

import jodd.util.StringUtil;

public class HtmlFilter {
	//只有纯文本可以通过
		public static String getText(String html){
			if(html == null)
				return null;
			html = StringUtil.replace(html, "&nbsp", "");
			return Jsoup.clean(html, Whitelist.none());
		}
}
